package com.cskaoyan.controller.wxcontroller;

import com.cskaoyan.bean.pojo.User;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.vo.BrandListVO;
import com.cskaoyan.bean.vo.wx.AddressListVO;
import com.cskaoyan.bean.vo.wx.BrandDetailVO;
import com.cskaoyan.service.BrandService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author ckd
 * @description 微信品牌模块
 */
@SuppressWarnings("all")
@RestController
@RequestMapping("wx/brand")
public class BrandController {
    @Autowired
    BrandService brandService;

    @RequestMapping("list")
    public BaseRespVo brandList(int page,int size) {
        BrandListVO brandListVO=brandService.brandList(page,size);
        return BaseRespVo.ok(brandListVO,"成功");
    }

    @RequestMapping("detail")
    public BaseRespVo brandDetail(int id) {
        BrandDetailVO brandDetailVO=brandService.brandDetail(id);
        return BaseRespVo.ok(brandDetailVO,"成功");
    }
}
